package com.ning.ems.dao;

import com.ning.ems.entity.PackageStateInfo;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/4/10 10:22
 */
@Repository
public interface PackageStateInfoDao {

    List<PackageStateInfo> listOfPkg(Integer pkg);

    List<PackageStateInfo> listOfCourier(Integer courier,
                                         LocalDateTime startTime, LocalDateTime endTime,
                                         Integer offset, Integer num);

    PackageStateInfo get(Integer id);

    int add(PackageStateInfo info);

    int deleteById(Integer id);

    int deleteByPkg(Integer pkg);

}
